package com.csx.springcloud.configcenter.apollo.sample.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p> what does this class do ? </p>
 * <p> How does it work ?</p>
 * <p> Why does it do this ?</p>
 *
 * @author cuisongxu
 * @date 2023/10/24 周二 14:40
 */

@RestController
public class ApolloSampleController {

    @Value("${apollo.test.atValue:defaultValue}")
    private String atValue;

    @GetMapping("/testAtValue")
    public String testAtValue() {
        System.out.println("atValue的值: " + atValue);
        return "atValue的值: " + atValue;
    }
}
